home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_1838 / frame_3 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  415 b   |  27 lines

  1. function scoreplus1()
  2. {
  3.    if(lb < 1000)
  4.    {
  5.       lb += 10;
  6.    }
  7.    if(lb >= 1000)
  8.    {
  9.       lb = 1000;
  10.       clearInterval(intervalID1);
  11.       _root.lc.play();
  12.    }
  13. }
  14. stop();
  15. _parent.lc_music.start();
  16. lb = 0;
  17. var intervalID1;
  18. intervalID1 = setInterval(scoreplus1,8);
  19. onEnterFrame = function()
  20. {
  21.    if(Key.isDown(32))
  22.    {
  23.       gotoAndStop(15);
  24.       delete this.onEnterFrame;
  25.    }
  26. };
  27.